package eraserhead.controller;

import javax.swing.JOptionPane;

import eraserhead.boundary.DecisionLinesCanvas;
import eraserhead.entity.Decision;

/**
 * Controller that alerts the user that it is their turn via a JOptionPane
 * @author Cian
 * @author Greg
 * Takes in the user whose turn it is, sets the current user to that user,
 * then, if that is the user who is currently supposed to add an edge,
 * displays a JOptionPane informing them its their turn.
 */
public class StatusController {	
	
	Decision model;
	DecisionLinesCanvas view;
	
	/**
	 * Create a new {@link StatusController}
	 * @param model {@link Decision} to control
	 * @param view {@link DecisionLinesCanvas} associated with the model
	 */
	public StatusController(Decision model, DecisionLinesCanvas view)
	{
	 	this.model = model;
	 	this.view = view;
	} 
	
	public void process()
	{	
		
	
		view.setCanAddEdge(true);
		JOptionPane.showMessageDialog(view, "It is your turn!", "Your Turn", JOptionPane.INFORMATION_MESSAGE);
		
		
	}
}
